package com.sh.test;

import com.sh.promise.Promise;

/**
 * @Date 13:42 2023/3/9
 **/
public class Demo04 {
    public static void main(String[] args) {
        new Promise.Builder().promiseHandler(executor -> 3).build()
                .then(resolvedData -> (Integer)resolvedData * 3)
                .pFinally((resolvedData, e) -> System.out.println("resolvedData = " + resolvedData));
    }
}
